﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Ling.ZhControls;

namespace Ling.ZhControlsDEMO
{
    public partial class Form1 : LingForm
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void IDC_MINI_Click(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Minimized;
        }

        private void IDC_MAXREST_Click(object sender, EventArgs e)
        {
            if (this.WindowState == FormWindowState.Maximized)
                this.WindowState = FormWindowState.Normal;
            else
                this.WindowState = FormWindowState.Maximized;
        }

        private void IDC_CLS_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void 子菜单1ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form2 f2 = new Form2();
            f2.ShowDialog(this);
            f2.Dispose();
        }

        private void glassButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
